package com.huangkailong.designpattern.prototype;

import java.util.List;
import lombok.Data;

/**
 * 浅拷贝原型模式实现.
 *
 * @author huangkl
 * @since 1.0.0
 */
@Data
public class DeepClonePrototype implements Cloneable {
    private String userName;
    private String password;
    private List<String> hobbies;

    @Override
    protected DeepClonePrototype clone() {
        return DeepCloneUtil.clone(this);
    }
}
